package tc.alert.tckejisoc.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 
 * @TableName soc_ip
 */
@TableName(value ="soc_ip")
public class SocIp {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 1 直接匹配  2 号段匹配
     */
    private Integer type;

    /**
     * ip
     */
    private String ip;

    /**
     * 开始ip
     */
    private String ipB;

    /**
     * 结束ip
     */
    private String ipE;

    /**
     * 1 启用  2 关闭
     */
    private Integer status;

    /**
     * 创建时间
     */
    private String createTime;

    /**
     * 创建用户
     */
    private String createUser;

    /**
     * 修改时间
     */
    private String updateTime;

    /**
     * 备注
     */
    private String context;

    /**
     * 
     */
    public Integer getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 1 直接匹配  2 号段匹配
     */
    public Integer getType() {
        return type;
    }

    /**
     * 1 直接匹配  2 号段匹配
     */
    public void setType(Integer type) {
        this.type = type;
    }

    /**
     * ip
     */
    public String getIp() {
        return ip;
    }

    /**
     * ip
     */
    public void setIp(String ip) {
        this.ip = ip;
    }

    /**
     * 开始ip
     */
    public String getIpB() {
        return ipB;
    }

    /**
     * 开始ip
     */
    public void setIpB(String ipB) {
        this.ipB = ipB;
    }

    /**
     * 结束ip
     */
    public String getIpE() {
        return ipE;
    }

    /**
     * 结束ip
     */
    public void setIpE(String ipE) {
        this.ipE = ipE;
    }

    /**
     * 1 启用  2 关闭
     */
    public Integer getStatus() {
        return status;
    }

    /**
     * 1 启用  2 关闭
     */
    public void setStatus(Integer status) {
        this.status = status;
    }

    /**
     * 创建时间
     */
    public String getCreateTime() {
        return createTime;
    }

    /**
     * 创建时间
     */
    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    /**
     * 创建用户
     */
    public String getCreateUser() {
        return createUser;
    }

    /**
     * 创建用户
     */
    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    /**
     * 修改时间
     */
    public String getUpdateTime() {
        return updateTime;
    }

    /**
     * 修改时间
     */
    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    /**
     * 备注
     */
    public String getContext() {
        return context;
    }

    /**
     * 备注
     */
    public void setContext(String context) {
        this.context = context;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SocIp other = (SocIp) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()))
            && (this.getIp() == null ? other.getIp() == null : this.getIp().equals(other.getIp()))
            && (this.getIpB() == null ? other.getIpB() == null : this.getIpB().equals(other.getIpB()))
            && (this.getIpE() == null ? other.getIpE() == null : this.getIpE().equals(other.getIpE()))
            && (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
            && (this.getCreateTime() == null ? other.getCreateTime() == null : this.getCreateTime().equals(other.getCreateTime()))
            && (this.getCreateUser() == null ? other.getCreateUser() == null : this.getCreateUser().equals(other.getCreateUser()))
            && (this.getUpdateTime() == null ? other.getUpdateTime() == null : this.getUpdateTime().equals(other.getUpdateTime()))
            && (this.getContext() == null ? other.getContext() == null : this.getContext().equals(other.getContext()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        result = prime * result + ((getIp() == null) ? 0 : getIp().hashCode());
        result = prime * result + ((getIpB() == null) ? 0 : getIpB().hashCode());
        result = prime * result + ((getIpE() == null) ? 0 : getIpE().hashCode());
        result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
        result = prime * result + ((getCreateTime() == null) ? 0 : getCreateTime().hashCode());
        result = prime * result + ((getCreateUser() == null) ? 0 : getCreateUser().hashCode());
        result = prime * result + ((getUpdateTime() == null) ? 0 : getUpdateTime().hashCode());
        result = prime * result + ((getContext() == null) ? 0 : getContext().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", type=").append(type);
        sb.append(", ip=").append(ip);
        sb.append(", ipB=").append(ipB);
        sb.append(", ipE=").append(ipE);
        sb.append(", status=").append(status);
        sb.append(", createTime=").append(createTime);
        sb.append(", createUser=").append(createUser);
        sb.append(", updateTime=").append(updateTime);
        sb.append(", context=").append(context);
        sb.append("]");
        return sb.toString();
    }
}